package com.sakura.mall.product.category.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.product.category.domain.entity.CategoryEntity;
import com.sakura.mall.product.category.domain.request.AddCategoryRequest;
import com.sakura.mall.product.category.domain.request.UpdateCategoryRequest;
import com.sakura.mall.product.category.domain.request.CategoryPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.product.category.domain.vo.CategoryVo;

/**
 * 商品三级分类 service
 *
 * @author sakura
 */
public interface CategoryService extends IService<CategoryEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<CategoryVo> queryPage(CategoryPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddCategoryRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateCategoryRequest request);
}
